package bjtuoj;

import java.math.BigInteger;
import java.util.Scanner;

/**
 * ClassName: Homework_1_4
 * Description:
 * date: 2021-09-25 21:19
 *
 * @author liyifan
 */
public class Homework_1_D {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.close();
        BigInteger x = new BigInteger("0");
        x = new BigInteger("2").pow(n + 1).subtract(new BigInteger("2"));
        System.out.print(x);
    }
}
